﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = -99999, dateSpan2 = 0, tabTitle = "Overdue" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = -1, dateSpan2 = 1, tabTitle = "Today" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = 0, dateSpan2 = 2, tabTitle = "Tomorrow" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = 1, dateSpan2 = 8 - (int)DateTime.Today.DayOfWeek, tabTitle = "This week" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = (7 - (int)DateTime.Today.DayOfWeek), dateSpan2 = 15 - (int)DateTime.Today.DayOfWeek, tabTitle = "Next week" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = (14 - (int)DateTime.Today.DayOfWeek), dateSpan2 = (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month) - DateTime.Today.Day + 1 ), tabTitle = "This month" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month) - DateTime.Today.Day), dateSpan2 = (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.AddMonths(1).Month)) + (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)) - DateTime.Now.Day + 1, tabTitle = "Next month" }); %>
<%Html.RenderAction("UpcomingListByDate", "Task", new { dateSpan1 = (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.AddMonths(1).Month)) + (DateTime.DaysInMonth(DateTime.Now.Year, DateTime.Now.Month)) - DateTime.Now.Day, dateSpan2 = 99999, tabTitle = "Upcomming" }); %>

